package com.trainfinder.ripper.sweep;

import java.util.Calendar;

import com.trainfinder.ripper.Storer;

public class GradientSweep implements Sweep {

	public GradientSweep() {}
	
	
	public void sweep(String fromStation, String toStation) {
		Storer STORER = new Storer();
		Calendar c = Calendar.getInstance();
		STORER.removeExpiredData();

		STORER.dailyStore(c, 1, fromStation, toStation);
		c.add(Calendar.DAY_OF_YEAR, 1);
		STORER.dailyStore(c, 1, fromStation, toStation);
		STORER.dailyStore(c, 2, fromStation, toStation);
		STORER.dailyStore(c, 3, fromStation, toStation);
		STORER.dailyStore(c, 4, fromStation, toStation);
		STORER.dailyStore(c, 5, fromStation, toStation);
		STORER.dailyStore(c, 6, fromStation, toStation);
		STORER.dailyStore(c, 7, fromStation, toStation);
	 
	}

	public static final void main(String args[]) {
		new GradientSweep().sweep("london", "paris");
	}

}
